
#import <Foundation/Foundation.h>

/*显示文字说明等*/
#define mUpLoading @"正在加载中，请稍等..."
#define mLoginLoading @"登录中，请稍等..."
#define mInLoading @"数据获取中，请稍等..."
#define mOutLoading @"数据提交中，请稍等..."
#define mPasswordLong @"密码长度不能大于16！"
#define mPass @"前后两次输入密码不一致。"
#define mOldPass @"旧密码不能为空。"
#define mMailNull @"邮箱不能为空。"
#define mMailNo @"邮箱格式不对。"
#define mVar @"当前已经是最新版本！"


#define kDefaultUserAccount  @"kDefaultUserAccount"
#define kDefaultPassword     @"kDefaultPassword"
#define KDefaultRemember     @"KDefaultRemember"
#define KDefaultDept         @"KDefaultDept"
#define kDefaultNerSion      @"kDefaultNerSion"
#define kDefaultAddressList  @"kDefaultAddressList"
#define kDefaultQLPreview    @"kDefaultQLPreview"
#define kDefaultMailAccount  @"kDefaultMailAccount"
#define kDefaultMailPassword @"kDefaultMailPassword"
#define kDefaultUserGroupId  @"kDefaultUserGroupId"
#define kDefaultEmail        @"kDefaultEmail"
#define kDefaultMb           @"kDefaultMb"
#define kDefaultDspName      @"kDefaultDspName"
#define kDefaultTitle        @"kDefaultTitle"
#define kDefaultGroupSynTime @"kDefaultGroupSynTime"
#define kTreatedCompleteNotification @"kTreatedCompleteNotification"
#define kTreatedCompleteNotification1 @"kTreatedCompleteNotification1"
#define kTLement @"kTLement"
#define KAddressUpdate @"KAddressUpdate"
#define KAddressModify @"KAddressModify"
#define kTHome @"kTHome"
#define KSettlement @"KSettlement"

#define kefUrl @"http://www.hewulu.com/Content/customerService/CustomerService.html"
#define _nerVion @"ios_150520"
//#define WEB_URL @"http://www.hewulu.com"
#define WEB_URL @"http://172.16.36.241:8061"
//#define WEB_URL @"http://172.16.36.198"
//#define WEB_URL @"http://172.16.36.241:8071"
//#define WEB_URL @"http://www.lifefta.com"
#define _nerUrl @"https://mail.xmigc.com/ios/ios.html"
//首页大广告(code=AppHomeAdBig) 首单立减广告(code=AppHomeAdMinus) 品牌特卖广告(code=AppHomeAdBrand) 主题馆广告(code=AppHomeAdShopTheme)
#define kApiHomepageADs @"/ApiAD/HomepageAD?"
//秒杀场次列表(code=AppHomeActPanicBuy)
#define kApiHomepageSecKill @"/ApiAD/HomepageSecKill?"
//场次秒杀商品列表
#define kApiGetSecKillProductListByPlay @"/ApiProduct/GetSecKillProductListByPlay?"
//首单立减活动
#define kApiActiveProductsy @"/ApiProduct/ActiveProducts?"
//新品推荐橱窗商品列表(code=AppHomeLayNewPop) 精品推荐橱窗商品列表(code=AppHomeLayGoodPop)
#define kApiGetWindowLayoutProductList @"/ApiSiteLayout/GetWindowLayoutProductList?"



//首页广告
#define kApiHomepageAD @"/ApiProduct/HomepageAD"
//商品列表，今日特惠接口
#define KApiHomepageTodaySales @"/ApiProduct/HomepageTodaySales"
//精品推荐接口
#define KApiHomepageFeaturedProducts @"/ApiProduct/HomepageFeaturedProducts"
//商品列表
#define KApiHomepageCatalogProducts @"/ApiCatalog/HomepageCatalogProducts?"
//商品详情
#define KApiGetDetailProduct @"/ApiProduct/GetDetailProduct?"
//登陆
#define KApiLogin @"/ApiHome/Login?"
//获取购物车列表
#define KApicart @"/ApiShoppingCart/cart"
//获取商品接口为ManageInventoryMethodId = 2  价格、库存等
#define KApiGetProductInfoByAttribute @"/ApiProduct/GetProductInfoByAttribute?"
//商品评价列表
#define KApiReviewsPage @"/ApiEvaluation/ReviewsPage?"
//猜你喜欢
#define KApiInterestingProductse @"/ApiProduct/InterestingProducts"
//搜索
#define KApiGetSearchProducts @"/ApiProduct/GetSearchProducts?"
//获取省份列表
#define KApiGetStatesByCountryId @"/ApiCountry/GetStatesByCountryId"
//获取城市列表接口
#define KApiGetCityByProvinceId @"/ApiCountry/GetCityByProvinceId?"
//获取县区列表接口
#define KApiGetDistrictByCityId @"/ApiCountry/GetDistrictByCityId?"
//获取街道列表接口
#define KApiGetStreetByDistrictId @"/ApiCountry/GetStreetByDistrictId?"
//商品详情页加入购物车接口 商品详情页加入收藏夹接口
#define KApiAddProductToCart_Details @"/ApiShoppingCart/AddProductToCart_Details?"
//购物车加入收藏夹接口 购物车或收藏夹类型ID：1表示从收藏夹加入购物车，2表示从购物车加入收藏夹
#define KApiAddProductToCart_ShoppingCart @"/ApiShoppingCart/AddProductToCart_ShoppingCart?"
//商品批量加入收藏夹接口
#define KApiAddItemsToWishlistFromCart @"/ApiShoppingCart/AddItemsToWishlistFromCart?"
//提交订单接口
#define KApiConfirmOrder @"/ApiCheckout/ConfirmOrder?"
//更新购物车接口
#define KApiUpdateCart @"/ApiShoppingCart/UpdateCart?"
//结算购物车接口
#define KApiCheckoutOrder @"/ApiShoppingCart/CheckoutOrder?"
//获取收货地址列表
#define KApiAddresses @"/ApiCustomer/Addresses?"
//添加收货地址
#define KApiAddressAdd @"/ApiCustomer/AddressAdd?"
//根据收货地址ID获取收货地址
#define KApiAddressGet @"/ApiCustomer/AddressGet?"
//编辑保存收货地址
#define KApiAddressEdit @"/ApiCustomer/AddressEdit?"
//根据收货地址ID删除收货地址
#define KApiAddressDelete @"/ApiCustomer/AddressDelete?"
//根据收货地址ID设置默认收货地址
#define KApiSelectShippingAddress @"/ApiCheckout/SelectShippingAddress?"
//商品分类接口
#define KApiGetStoreCategories @"/ApiProduct/GetStoreCategories?"
//店铺基本信息
#define KApiGetShopInfoById @"/ApiProduct/GetShopInfoById?"
//店铺列表
#define KApiGetSearchShops @"/ApiProduct/GetSearchShops?"
//店铺分类接口
#define KApiGetShopCategoriesById @"/ApiProduct/GetShopCategoriesById?"
//店铺商品列表
#define KApiGetProductsByShopCategoryId @"/ApiProduct/GetProductsByShopCategoryId?"
//订单列表
#define KApiGetSimpleOrders @"/ApiOrder/GetOrders?"
//订单明细列表
#define KApiGetOrderDetailById @"/ApiOrder/GetOrderDetailById?"
//订单详情
#define KApiGetOrderModelById @"/ApiOrder/GetOrderModelById?"
//获取某类订单数量
#define KApiGetOrderNum @"/ApiOrder/GetOrderNum?"
//确认收货
#define KApiSetAsDelivered @"/ApiOrder/SetAsDelivered?"
//取消订单
#define KApiCancelOrder @"/ApiOrder/CancelOrder?"
//客户订单记录删除
#define KApiSetCustomerDeleteStatus @"/ApiOrder/SetCustomerDeleteStatus?"
//手机注册
#define KApiCustomerRegister @"/ApiCustomer/CustomerRegister?"
//个人中心-评价
#define KApiProductReviewsAdd @"/ApiEvaluation/ProductReviewsAdd?"
//个人中心-晒单
#define KApiSharePictureAdd @"/ApiEvaluation/SharePictureAdd?"
//订单支付接口
#define KApiGetOrderPayingUrl @"/ApiOrder/GetOrderPayingUrl?"
//个人信息接口
#define KApiSaveInfo @"/ApiCustomer/SaveInfo?"
//修改个人密码接口
#define KApiPasswordChange @"/ApiCustomer/PasswordChange?"
//获取用户购物车收藏夹数量接口
#define KApiGetShoppingCartCount @"/ApiShoppingCart/GetShoppingCartCount?"
//获取收藏夹列表
#define KApiWishlist @"/ApiShoppingCart/Wishlist?"
//获取收藏店铺列表
#define KApiFavoriteShopList @"/ApiFavoriteShop/FavoriteShopList?"
//摇一摇
#define KApiLottery @"/ApiLottery/Lottery?"
//摇一摇规则
#define KApiLotteryInfo @"/ApiLottery/LotteryInfo?"
//我的优惠券接口
#define KApiMyCoupon @"/ApiCoupon/MyCoupon?"
//领取优惠券接口
#define KApiReceiveCoupons @"/ApiCoupon/ReceiveCoupons?"
//领取某优惠券
#define KApiImmediatelyReceive @"/ApiCoupon/ImmediatelyReceive?"
//金元宝列表
#define KApiMyGoldIngot @"/ApiIngot/MyGoldIngot?"
//银元宝列表
#define KApiMySilverIngot @"/ApiIngot/MySilverIngot?"
//返利列表
#define KApiCustomerReferralFeeRecordList @"/ApiRebate/CustomerReferralFeeRecordList?"
//更新接口
#define KApiCheckVer @"/api/CheckVer?"
//店铺收藏
#define KApiFavoriteShopInsert @"/ApiFavoriteShop/FavoriteShopInsert?"
//取消店铺收藏
#define KApiFavoriteShopDelete @"/ApiFavoriteShop/FavoriteShopDelete?"

#define bgColor [UIColor colorWithRed:238/255.0 green:238/255.0 blue:238/255.0 alpha:1]
#define viewFrame CGRectMake(0, 0, screenMySize.size.width, screenMySize.size.height-64-48)
#define tableFrame CGRectMake(0, 0, screenMySize.size.width, screenMySize.size.height-48)
#define itemLabel 10
#define labelSize 15//应用字体大小
#define screenMySize [[UIScreen mainScreen] bounds]
//bool isWifi;//判断是否wifi状态
#define SLIP_WIDTH (screenMySize.size.width-40)

